/*
 *    Copyright (c) 2018-2025, boss All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the boss developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: boss
 */

package com.hopes.bizz.line.pipe.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.hopes.bizz.line.constant.enums.ParkLineModDictEnum;
import com.hopes.boss.admin.api.resolver.DictResolver;
import com.hopes.boss.common.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 管段
 *
 * @author pig
 * @date 2024-02-21 21:46:39
 */
@Data
@TableName(value = "line_pipe", excludeProperty = "tenantId")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "管段")
public class LinePipeEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;


	/**
	* id
	*/
	@TableId(type = IdType.ASSIGN_ID)
    @Schema(description="id")
    private Long id;

	/**
	* 管线ID
	*/
    @Schema(description="管线ID")
    private Long pipelineId;

	/**
	* 管线编码
	*/
    @Schema(description="管线编码")
    private String pipeCode;

	/**
	* 起始点号
	*/
    @Schema(description="起始点号")
    private String startNum;

	/**
	* 终止点号
	*/
    @Schema(description="终止点号")
    private String endNum;

	/**
	* 起点埋深
	*/
    @Schema(description="起点埋深")
    private BigDecimal startAltitude;

	/**
	* 终点埋深
	*/
    @Schema(description="终点埋深")
    private BigDecimal endAltitude;

	/**
	* 起点高程
	*/
    @Schema(description="起点高程")
    private BigDecimal startElevation;

	/**
	* 终点高程
	*/
    @Schema(description="终点高程")
    private BigDecimal endElevation;

	/**
	* 管径
	*/
    @Schema(description="管径")
    private BigDecimal pipeRadius;

	/**
	* 管段长度
	*/
    @Schema(description="管段长度")
    private BigDecimal pipeLength;

	/**
	* 位置
	*/
    @Schema(description="位置")
    private String position;

	/**
	* 流向码
	*/
    @Schema(description="流向码")
    private String flowDirectionCode;

	/**
	* 备注
	*/
    @Schema(description="备注")
    private String remarks;

	/**
	* 机构ID
	*/
    @Schema(description="机构ID")
    private Long orgId;



    public String getPipelineIdStr() {
    	return DictResolver.getItemLabelByValue(ParkLineModDictEnum.line_pipe_line, this.getPipelineId());
	}

}
